/**
* All Rights Reserved , Copyright (C) 2021 , 青岛鼎信通讯股份有限公司
*
* MpmProjectWinBidInfoServiceAuto
* 中标信息表
*
* 修改纪录
* 2021-07-27 版本：1.0 chengengwei 创建。
* @version 版本：1.0
* @author 作者：chengengwei
* 创建日期：2021-07-27
*/

package com.topscomm.mpm.service.impl.auto;

import javax.annotation.Resource;
import com.topscomm.basic.IBasicDao;
import com.topscomm.tap.common.DatacodeCache;
import java.util.Map;
import com.topscomm.mpm.*;
import com.topscomm.mpm.pojo.MpmProjectWinBidInfoEntity;
import com.topscomm.mpm.dao.IMpmProjectWinBidInfoDao;


public class MpmProjectWinBidInfoServiceAuto extends MpmService<MpmProjectWinBidInfoEntity,IMpmProjectWinBidInfoDao> {

	/**
	 * @author: chengengwei
	 * @date: 2021-07-27
	 * @param mapRow
	 * @description:设置字段显示值
	 * @modify:
	 */
	@Override
	public void setDispFields(Map<String, Object> mapRow, DatacodeCache datacodeCache) {
		String temp;
		if (mapRow.get("bidresult") != null) {
			temp = mapRow.get("bidresult").toString();
			mapRow.put("dispbidresult", datacodeCache.getValueDynamic("LtcBidResult", temp, "code", "name"));
		}
		if (mapRow.get("partake") != null) {
			temp = mapRow.get("partake").toString();
			mapRow.put("disppartake", datacodeCache.getValueDynamic("CboYesNo", temp, "code", "name"));
		}
	}

	@Override
	@Resource(name = "mpmProjectWinBidInfoDao")
	public void setDao(IBasicDao<MpmProjectWinBidInfoEntity> dao) {
		super.setDao(dao);
	}
}
